package com.tang.user.service;

import com.github.pagehelper.PageInfo;
import com.tang.common.entity.user.User;

import java.util.List;


public interface UserService {
    User find(String userName, String password);
    PageInfo<User> list(Integer userType,String keywords, Integer currentPage, Integer pageSize);
    int deleteByUserId(int userId);
    int enableDisableByUserId(int userId);
    int deleteByUserName(String userName);
    User selectByUserName(String userName);
    int updateUser(User user);
    int addUser(User user);
    User selectByTel(String tel);
    User selectByEmail(String email);

    PageInfo<User> listAuthUser(String keywords, Integer currentPage, Integer pageSize, Integer hasAuth);

    String auditCompanyUser(Integer userId, String res);
    Integer getUserCount(Integer filter);

    User selectById(Integer userId);

    List<User> selectByCompanyName(String companyName);

    PageInfo<User> listExpectUser(Integer currentPage, Integer pageSize);

    Boolean noPassUser(String companyName);
}
